﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage_Sub.master" AutoEventWireup="true"
    CodeFile="allnewslist.aspx.cs" Inherits="news_allnewslist" Title="IT110：不良信息举报与检索平台 - 全部资讯信息列表 - By ECountry.Ltd." %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Search" runat="Server">
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="id"
        DataSourceID="ObjectDataSource_All_News" AllowPaging="True" Width="100%" CssClass="archive_dyh"
        EnableViewState="False" CellPadding="4" ForeColor="#333333" GridLines="None">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <Columns>
            <asp:BoundField DataField="time" HeaderText="日期" SortExpression="time" DataFormatString="{0:d}">
                <HeaderStyle BorderWidth="0px" />
                <ItemStyle CssClass="archive_dyh" BorderStyle="Outset" BorderWidth="0px" Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="subclasstitle"  HeaderText="分类" SortExpression="subclasstitle"
                DataFormatString="[{0}]">
                <HeaderStyle BorderWidth="0px" />
                <ItemStyle BorderWidth="0px" Width="70px" />
            </asp:BoundField>
            <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="newsdetail.aspx?id={0}"
                DataTextField="title" HeaderText="标题">
                <HeaderStyle BorderWidth="0px" />
                <ItemStyle BorderWidth="0px" HorizontalAlign="Right" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="hits" HeaderText="人气" SortExpression="hits">
                <HeaderStyle BorderWidth="0px" />
                <ItemStyle BorderWidth="0px" CssClass="comments" Width="40px" />
            </asp:BoundField>
            <asp:BoundField DataField="username" HeaderText="上传用户" SortExpression="username">
                <HeaderStyle BorderWidth="0px" />
                <ItemStyle  BorderWidth="0px" CssClass="rating" HorizontalAlign="Left" Width="65px" />
            </asp:BoundField>
            <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                SortExpression="id" Visible="False" />
        </Columns>
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BorderWidth="0px" CssClass="archive_dyh" BackColor="#5D7B9D" Font-Bold="True"
            ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <%--    </DIV>
    --%>
    <asp:ObjectDataSource ID="ObjectDataSource_All_News" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="Get_All_Data_Order_By_Time" TypeName="DataSet_fp_news_DyhTableAdapters.Dyh_NewsTableAdapter">
    </asp:ObjectDataSource>
</asp:Content>
